From: Adrian Bunk Date: Tue, 18 Jan 2022 23:10:52 +0000 (+0200) Subject: HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro X-Git-Tag: archive/raspbian/9.5.2+dfsg4-3+rpi1^2~125^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/%22mailto:kde%40ewsoftware.de/%22style.css//%22node%24level1.html/%22/%22http:/www.example.com/%22mailto:kde%40ewsoftware.de/%22style.css/%22node%24level1.html/%22?a=commitdiff_plain;h=b243b247936f4350d15078c0d4335dfc22b51be8;p=vtk9.git HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro Fixes building for Qt with OpenGL ES. --- diff --git a/debian/patches/84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch b/debian/patches/84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch new file mode 100644 index 000000000..0744d41ee --- /dev/null +++ b/debian/patches/84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch @@ -0,0 +1,24 @@ +Description: HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro + Fixes building for Qt with OpenGL ES. +Author: Adrian Bunk + +--- vtk9-9.1.0+dfsg2.orig/GUISupport/Qt/vtkQWidgetTexture.cxx ++++ vtk9-9.1.0+dfsg2/GUISupport/Qt/vtkQWidgetTexture.cxx +@@ -18,7 +18,7 @@ + #include "vtkOpenGLResourceFreeCallback.h" + #include "vtkOpenGLState.h" + +-#include "vtkOpenGLError.h" ++//#include "vtkOpenGLError.h" + + #include + #include +@@ -98,7 +98,7 @@ vtkQWidgetTexture::vtkQWidgetTexture() + } + + this->Create2DFromRaw(width, height, 4, VTK_UNSIGNED_CHAR, this->ImageBuffer); +- vtkOpenGLCheckErrorMacro("failed after QWidgeTexture repaint and draw"); ++ //vtkOpenGLCheckErrorMacro("failed after QWidgeTexture repaint and draw"); + } + }; + } diff --git a/debian/patches/series b/debian/patches/series index 6c21f514a..11535dec5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,6 +5,7 @@ 50_fix_python-modules_path.patch 60_fix_path_perl.patch 83_allow_gles_platforms.patch +84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch 95_java_mach-arch_fix.patch 97_reproducible_builds.patch 98_fix_mpi4py.py